package sourceagile.server.localFileRepository;

import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;

/**
 * 
 * @Feature
 */
public class GetLocalFileContent {

	public static JSONObject jsonFileContent(String projectName, String filePath) {

		JSONObject entry = new JSONObject();

		try {

			entry.put("fileContent",
					ReadLocalFile.readFile(projectName, filePath));

		} catch (JSONException e) {

			e.printStackTrace();
		}

		return entry;
	}

}
